<template>

        <keep-alive>
           <router-view v-if="isRouterAlive" ></router-view>
        </keep-alive>
</template>
<script>
export default {
 name: 'EmptyPageView',
 data () {
  return {
   isRouterAlive: true
  }
 },
 watch: {
  '$route': function (a,b,c) {
    console.log('333333')
   console.log('reloadTab:',a,b,c)
   if (a.name!=b.name) this.reloadTab()
  },
 },
 methods: {
  reloadTab () {
   this.isRouterAlive = false
   this.$nextTick(function () {
    this.isRouterAlive = true
   })
  }
 }
}
</script>